<template>
	<view class="container">
	
		<view class="addBox mb20" @click="open">
			<image src="../../static/images/icon_add.png" mode="aspectFit" ></image>
			<view class="text f32">添加商品分类</view>
		</view>
		<!-- 全部分类 -->
		<view class="classify">
			<view class="tit f32 c333">全部分类</view>
			<view class="select-item">
				<view class="name f30 c333">衣服</view>
				<view class="arrow" @click="open"><image src="../../static/images/icon_select.png" mode="aspectFit"></image></view>
			</view>
			<view class="select-item">
				<view class="name f30 c333">裙子</view>
				<view class="arrow" @click="open"><image src="../../static/images/icon_select.png" mode="aspectFit"></image></view>
			</view>
		</view>
		
		<!-- 添加分类弹窗 -->
		<uni-popup ref="popup" type="center">
		<view class="addContent">
			<view class="box">
				<view class="tit tCenter f36 c333">仓库变动备注</view>
				<view class="input-box">
					<input type="text" value="最多输入8个字符" />
				</view>
				<view class="btn f30 tCenter">
					<view class="dropBtn" @click="close">取消</view>
					<view class="submit">确定</view>
				</view>
			</view>
		</view>
		</uni-popup>
		
		
		
	</view>
</template>

<script>
	import uniPopup from "@/components/uni-popup/uni-popup.vue"
	export default {
	    components: {
			uniPopup
			},
			data(){
				return{
					
				};
			},
			onLoad() {
				
			},
			methods:{
				open(){
				     this.$refs.popup.open()
				 },
				 close(){
					 this.$refs.popup.close()
				 }
			}
	}
</script>

<style lang="scss">
	page {
		background-color: #F7F4F8;
	}

	.addBox{
		display: flex;
		flex-direction: row;
		align-items: center;
		background-color: $white-background;
		padding: 25upx 30upx 25upx 30upx;
		image{
			width: 40upx;
			height: 40upx;
			margin-right: 20upx;
		}
		.text{
			color: #249AF6;
		}
	}
	// 全部分类
	.classify{
		background-color: $white-background;
		padding: 30upx 0 100upx 0;
		.tit{
			border-bottom: 2upx #eee solid;
			padding:0 30upx 35upx 30upx;
		}
		.select-item{
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			border-bottom: 2upx #eee solid;
			padding:0 30upx 30upx;
			margin-top: 35upx;
			.arrow{
				image{
					width: 38upx;
					height: 38upx;
				}
			}
		}
	}
	
</style>
